package com.jch.utils;




import org.apache.commons.dbutils.QueryRunner;

import javax.sql.DataSource;

public class QueryRunnerUtils2 {
    private QueryRunner queryRunner=null;
    private DataSource ds=null;

    public QueryRunnerUtils2(){
        ds=DBPoolUtils2.getDataSource();
        if (ds==null){
            queryRunner=new QueryRunner(ds);
        }else {
            queryRunner=new QueryRunner();
        }
    }

    public QueryRunner getQueryRunner(){
        return  queryRunner;
    }
}
